class Test(object):
    def __new__(cls, *args, **kwargs):
        print('分配空间')

        #  为对象分配空间
        instance = super().__new__(cls)
        #  返回对象的引用
        return instance

    def __init__(self):
        print('初始化输出')


test = Test()
print(test)